package org.hilo.game.pages;

import java.util.Date;
import java.util.Random;

import org.apache.tapestry5.annotations.InjectPage;
import org.apache.tapestry5.annotations.Property;
/**
 * Start page of application game.
 */
public class Index
{
	private Random random= new Random();
	
	
	@InjectPage
	private Guess guess;
	
	Object onAction(){
		int target =random.nextInt(10)+1;
		return guess.initialize(target);
	}
	
	
	@Property
	private String text;
	
	Object onActionFromIn2(String t){
		
	this.text="Ende";
	return this;
	}
	
	
	
	
	
	public Date getCurrentTime() 
	{ 
		return new Date(); 
	}
}
